import Vue from 'vue'
import App from './App.vue'
import './style/base.css'
import './style/iconfont.less'
import router from './router'

// ------------全局组件
import HmHeader from './components/HmHeader'
import HmLog from './components/HmLog'
import HmButton from './components/HmButton'
import HmInput from './components/HmInput'
Vue.component('hm-header', HmHeader)
Vue.component('hm-log', HmLog)
Vue.component('hm-button', HmButton)
Vue.component('hm-input', HmInput)

// -----引入vant-ui  按需加载
import { Field, Toast } from 'vant'
Vue.use(Field)
Vue.use(Toast)
// ------引入axios  绑定vue的原型上
import axios from 'axios'
// ----axios优化配置基础路径
axios.defaults.baseURL = 'http://localhost:3000'
Vue.prototype.$axios = axios
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
